
package system.base;

import framework.core.*;

/*
	Author    :Wing
	CreateTime:2008-02-03 16:46:24
*/
public class CustomerStaffSearchEvent extends SearchEvent
{

	private String m_id = "" ; // all

	private String m_code = "" ; // all

	private String m_customer_code = "" ; // all

	private String m_self_code = "" ; // all

	private String m_name = "" ; // all

	private String m_sex = "" ; // all

	private String m_card_no1 = "" ; // all

	private String m_card_no2 = "" ; // all

	private String m_is_draw = "" ; // all

	private String m_remark = "" ; // all

	private String m_status = "" ; // all

	private String m_create_user_id = "" ; // all

	private String m_create_user = "" ; // all

	private String m_create_time = "" ; // all

	private String m_last_update_user_id = "" ; // all

	private String m_last_update_user = "" ; // all

	private String m_last_update_time = "" ; // all
		

public CustomerStaffSearchEvent() 
{
	super();
	
	setOrderField(CustomerStaff.CODE);
		
}



	public String getId()
	{
		return m_id ;
	}
	public void setId(String v)
	{
		m_id = v;
	}

	public String getCode()
	{
		return m_code ;
	}
	public void setCode(String v)
	{
		m_code = v;
	}

	public String getCustomerCode()
	{
		return m_customer_code ;
	}
	public void setCustomerCode(String v)
	{
		m_customer_code = v;
	}

	public String getSelfCode()
	{
		return m_self_code ;
	}
	public void setSelfCode(String v)
	{
		m_self_code = v;
	}

	public String getName()
	{
		return m_name ;
	}
	public void setName(String v)
	{
		m_name = v;
	}

	public String getSex()
	{
		return m_sex ;
	}
	public void setSex(String v)
	{
		m_sex = v;
	}

	public String getCardNo1()
	{
		return m_card_no1 ;
	}
	public void setCardNo1(String v)
	{
		m_card_no1 = v;
	}

	public String getCardNo2()
	{
		return m_card_no2 ;
	}
	public void setCardNo2(String v)
	{
		m_card_no2 = v;
	}

	public String getIsDraw()
	{
		return m_is_draw ;
	}
	public void setIsDraw(String v)
	{
		m_is_draw = v;
	}

	public String getRemark()
	{
		return m_remark ;
	}
	public void setRemark(String v)
	{
		m_remark = v;
	}

	public String getStatus()
	{
		return m_status ;
	}
	public void setStatus(String v)
	{
		m_status = v;
	}

	public String getCreateUserId()
	{
		return m_create_user_id ;
	}
	public void setCreateUserId(String v)
	{
		m_create_user_id = v;
	}

	public String getCreateUser()
	{
		return m_create_user ;
	}
	public void setCreateUser(String v)
	{
		m_create_user = v;
	}

	public String getCreateTime()
	{
		return m_create_time ;
	}
	public void setCreateTime(String v)
	{
		m_create_time = v;
	}

	public String getLastUpdateUserId()
	{
		return m_last_update_user_id ;
	}
	public void setLastUpdateUserId(String v)
	{
		m_last_update_user_id = v;
	}

	public String getLastUpdateUser()
	{
		return m_last_update_user ;
	}
	public void setLastUpdateUser(String v)
	{
		m_last_update_user = v;
	}

	public String getLastUpdateTime()
	{
		return m_last_update_time ;
	}
	public void setLastUpdateTime(String v)
	{
		m_last_update_time = v;
	}
		



	public String viewId() throws Exception
	{
		return Value.view(getId());
	}

	public String viewCode() throws Exception
	{
		return Value.view(getCode());
	}

	public String viewCustomerCode() throws Exception
	{
		return Value.view(getCustomerCode());
	}

	public String viewSelfCode() throws Exception
	{
		return Value.view(getSelfCode());
	}

	public String viewName() throws Exception
	{
		return Value.view(getName());
	}

	public String viewSex() throws Exception
	{
		return Value.view(getSex());
	}

	public String viewCardNo1() throws Exception
	{
		return Value.view(getCardNo1());
	}

	public String viewCardNo2() throws Exception
	{
		return Value.view(getCardNo2());
	}

	public String viewIsDraw() throws Exception
	{
		return Value.view(getIsDraw());
	}

	public String viewRemark() throws Exception
	{
		return Value.view(getRemark());
	}

	public String viewStatus() throws Exception
	{
		return Value.view(getStatus());
	}

	public String viewCreateUserId() throws Exception
	{
		return Value.view(getCreateUserId());
	}

	public String viewCreateUser() throws Exception
	{
		return Value.view(getCreateUser());
	}

	public String viewCreateTime() throws Exception
	{
		return Value.view(getCreateTime());
	}

	public String viewLastUpdateUserId() throws Exception
	{
		return Value.view(getLastUpdateUserId());
	}

	public String viewLastUpdateUser() throws Exception
	{
		return Value.view(getLastUpdateUser());
	}

	public String viewLastUpdateTime() throws Exception
	{
		return Value.view(getLastUpdateTime());
	}


	public Conditions toConditions() throws Exception
	{
		Conditions c = super.toConditions();

	c.add(getCondition(CustomerStaff.ID,getId()));

	c.add(getCondition(CustomerStaff.CODE,getCode()));

	c.add(getCondition(CustomerStaff.CUSTOMER_CODE,getCustomerCode()));

	c.add(getCondition(CustomerStaff.SELF_CODE,getSelfCode()));

	c.add(getCondition(CustomerStaff.NAME,getName()));

	c.add(getCondition(CustomerStaff.SEX,getSex()));

	c.add(getCondition(CustomerStaff.CARD_NO1,getCardNo1()));

	c.add(getCondition(CustomerStaff.CARD_NO2,getCardNo2()));

	c.add(getCondition(CustomerStaff.IS_DRAW,getIsDraw()));

	c.add(getCondition(CustomerStaff.REMARK,getRemark()));

	c.add(getCondition(CustomerStaff.STATUS,getStatus()));

	c.add(getCondition(CustomerStaff.CREATE_USER_ID,getCreateUserId()));

	c.add(getCondition(CustomerStaff.CREATE_USER,getCreateUser()));

	c.add(getCondition(CustomerStaff.CREATE_TIME,getCreateTime()));

	c.add(getCondition(CustomerStaff.LAST_UPDATE_USER_ID,getLastUpdateUserId()));

	c.add(getCondition(CustomerStaff.LAST_UPDATE_USER,getLastUpdateUser()));

	c.add(getCondition(CustomerStaff.LAST_UPDATE_TIME,getLastUpdateTime()));
		

			
		return c ;
	}
	
//add by Wing start

//add by Wing end
}
